<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			
			.movebox{
				width: 100px;
				height:100px ;
				background-color: red;
/*声明调用movebox动画*/
			animation: movebox 2s infinite;
			
				position:relative;
			}/*动画一定要设置坐标系*/
		@keyframes movebox{ /*定义一个动画，关键帧frame*/
			from{left:0px}/*开始位置*/
			to{left: 300px;}/*结束位置*/
		}	/*改变默认方式支持坐标系*/
		
		</style>
	</head>
	<body>
		<h3>移动方块动画效果</h3>
		<h5></h5>
		<div class="movebox"><img src="images/1.jpg"></div>
	</body>
</html>
